import request from '../utils/request';

//  获取所有疫情信息接口
const cov = () => {
  return request.post('/cov/')
}
// 获取所有小知识文章
const article = () => {
  return request.post('/article/')
}
// 用户注册
const register = (username, password, birthday, gender, address, phone, email) => {
  return request.post('/register/', {
    username: username,
    password: password,
    birthday: birthday,
    gender: gender,
    address: address,
    phone: phone,
    email: email
  })
}
// 用户登陆
const login = (username, password) => {
  return request.post('/login/', {
    username: username,
    password: password
  })
}
export {
  cov,
  article,
  register,
  login
}

